home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc1_2_x / popupmen.sit / PopUpMenu 2.0b2 / card_4442.txt < prev    next >
Text File  |  1989-09-13  |  2KB  |  137 lines

  1. -- card: 4442 from stack: in.0b2
  2. -- bmap block id: 2377
  3. -- flags: 4000
  4. -- background id: 3155
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 80
  10. -- high flags: A004
  11. -- rect: left=280 top=181 right=203 bottom=380
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: State
  20. ----- HyperTalk script -----
  21. on mouseDown
  22.   global lastState
  23.  
  24.   if card field "States" is not empty then
  25.     get PopUpMenu( card field "States", lastState )
  26.     if it is not empty then
  27.       put it into lastState
  28.       answer "ΓÇ£" & line it of card field states & "ΓÇ¥ was selected."
  29.     else
  30.       answer "No state was selected."
  31.     end if
  32.   end if
  33. end mouseDown
  34.  
  35.  
  36.  
  37. -- part 2 (field)
  38. -- low flags: 81
  39. -- high flags: 2007
  40. -- rect: left=145 top=144 right=309 bottom=255
  41. -- title width / last selected line: 0
  42. -- icon id / first selected line: 0 / 0
  43. -- text alignment: 0
  44. -- font id: 3
  45. -- text size: 9
  46. -- style flags: 0
  47. -- line height: 9
  48. -- part name: States
  49.  
  50.  
  51. -- part 4 (button)
  52. -- low flags: 00
  53. -- high flags: 0000
  54. -- rect: left=22 top=318 right=330 bottom=34
  55. -- title width / last selected line: 0
  56. -- icon id / first selected line: 0 / 0
  57. -- text alignment: 1
  58. -- font id: 0
  59. -- text size: 12
  60. -- style flags: 0
  61. -- line height: 16
  62. -- part name: You Found them
  63. ----- HyperTalk script -----
  64. on mouseUp
  65.   get visible of card field "States"
  66.  
  67.   if it is true then
  68.     hide card field "States"
  69.     hide card button "State"
  70.   else
  71.     show card field "States"
  72.     show card button "State"
  73.  
  74.     answer "Just wanted to show how fast a big menu is created."
  75.   end if
  76. end mouseUp
  77.  
  78.  
  79.  
  80. -- part contents for background part 10
  81. ----- text -----
  82. Menu Item Attributes
  83.  
  84. Items of a menu can have one of several attributes that effect its display. The following help cards show examples of disabled, styled, and icon menu items.
  85.  
  86. -- part contents for card part 2
  87. ----- text -----
  88. Alabama
  89. Alaska
  90. Arizona
  91. Arkansas
  92. California
  93. Colorado
  94. Connecticut
  95. Delaware
  96. Florida
  97. Georgia
  98. Hawaii
  99. Idaho
  100. Illinois
  101. Indiana
  102. Iowa
  103. Kansas
  104. Kentucky
  105. Louisiana
  106. Maine
  107. Maryland
  108. Massachusetts
  109. Michigan
  110. Minnesota
  111. Mississippi
  112. Missouri
  113. Montana
  114. Nebraska
  115. Nevada
  116. New Hampshire
  117. New Jersey
  118. New Mexico
  119. New York
  120. North Carolina
  121. North Dakota
  122. Ohio
  123. Oklahoma
  124. Oregon
  125. Pennsylvania
  126. Rhode Island
  127. South Carolina
  128. South Dakota
  129. Tennessee
  130. Texas
  131. Utah
  132. Vermont
  133. Virginia
  134. Washington
  135. West Virginia
  136. Wisconsin
  137. Wyoming